package com.my.cd.builder;

/**
 * 常用生成器辅助类：通过传入已有的具体构造者，用来生成常用实体
 */
public class CommonBuilderHelper {

    private AbstractCommonBuilder builder;

    public CommonBuilderHelper(AbstractCommonBuilder builder) {
        this.builder = builder;
    }

    public void setBuilder(AbstractCommonBuilder builder) {
        this.builder = builder;
    }

    public void build() {
        builder.buildVacation();
        builder.getVacation().showInfo();
    }
}
